package com.fsm.shardingDB.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;

import java.io.Serializable;

/**
 * Program Name: shardingjdbcdemo
 * Created by yanlp on 2022-03-12
 *
 * @author yanlp
 * @version 1.0
 */
@Data
@TableName("t_user")//指定对应表
public class User implements Serializable {
    private static final long serialVersionUID = -1614858179761502503L;


    @Id
    @Column(name = "user_id")
    private Long userId;

    @Column(name = "username")
    private String username;

    @Column(name = "ustatus")
    private String ustatus;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
